package com.ruoyi.shop.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商城素材对象
 * 
 * @author xuxiang
 * @date 2023-04-06
 */
public class ShopMaterial extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 商品素材id */
	private Long materialId;

	/** 商品素材名称(原文件名称) */
	@Excel(name = "商品素材名称(原文件名称)")
	private String materialName;

	/** 素材类型1图片2视频 */
	@Excel(name = "素材类型1图片2视频")
	private Integer materialType;

	/** 素材分组id */
	private Long groupId;

	/** 素材分组名称 */
	private String groupName;

	/** 排序 */
	@Excel(name = "排序")
	private Long sort;

	/** 文件大小 */
	@Excel(name = "文件大小")
	private Long size;

	/** 访问地址 */
	@Excel(name = "访问地址")
	private String url;

	/** 删除标志（0代表存在 2代表删除） */
	private String delFlag;

	/** 扩展名 */
	@Excel(name = "扩展名")
	private String extension;

	/** 分辨率 宽 */
	@Excel(name = "分辨率 宽")
	private Integer width;

	/** 分辨率 高 */
	@Excel(name = "分辨率 高")
	private Integer height;

	public void setMaterialId(Long materialId) {
		this.materialId = materialId;
	}

	public Long getMaterialId() {
		return materialId;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	public String getMaterialName() {
		return materialName;
	}

	public void setMaterialType(Integer materialType) {
		this.materialType = materialType;
	}

	public Integer getMaterialType() {
		return materialType;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public void setSort(Long sort) {
		this.sort = sort;
	}

	public Long getSort() {
		return sort;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public Long getSize() {
		return size;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setExtension(String extension) {
		this.extension = extension;
	}

	public String getExtension() {
		return extension;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("materialId", getMaterialId())
				.append("materialName", getMaterialName()).append("materialType", getMaterialType())
				.append("groupId", getGroupId()).append("sort", getSort()).append("size", getSize())
				.append("url", getUrl()).append("delFlag", getDelFlag()).append("createBy", getCreateBy())
				.append("createTime", getCreateTime()).append("updateBy", getUpdateBy())
				.append("updateTime", getUpdateTime()).append("extension", getExtension()).toString();
	}
}
